//
//  LoggedTimeRecord.swift
//  test-ios
//
//  Created by wyz5204 on 2023/4/1.
//

import Foundation


public class LoggedTimeRecord: Entity {
    
    public var projectId: Int
    public var id: Int
    public var minutesSpent: Int
    public var project: Project
    public var date: String
    public var description: String
    
    public init(projectId: Int,
                id: Int,
                minutesSpent: Int,
                project: Project,
                date: String,
                description: String) {
        self.id = id
        self.projectId = id
        self.minutesSpent = minutesSpent
        self.project = project
        self.date = date
        self.description = description
    }
    
    required public init() {
        self.projectId = 0
        self.id = 0
        self.minutesSpent = 0
        self.project = Project()
        self.date = ""
        self.description = "description"
    }
}
